<?php /* Smarty version Smarty-3.0.8, created on 2012-10-17 14:39:27
         compiled from "G:\xampp\htdocs\gy78/template\admin/user_write.html" */ ?>
<?php /*%%SmartyHeaderCode:21502507e529f90a977-12128253%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'fa2875f760aecb2514b807535d9238d198c39824' => 
    array (
      0 => 'G:\\xampp\\htdocs\\gy78/template\\admin/user_write.html',
      1 => 1350079346,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '21502507e529f90a977-12128253',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php $_template = new Smarty_Internal_Template("admin/header.html", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate(); $_template->rendered_content = null;?><?php unset($_template);?>
			<ul id="main-nav">  <!-- Accordion Menu -->

				<li>
					<a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'admin','a'=>'index'),$_smarty_tpl);?>
" class="nav-top-item no-submenu">控制面板</a>
				</li>

				<li>
					<a href="#" class="nav-top-item">文章</a>
					<ul>
						<li><a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'post','a'=>'write'),$_smarty_tpl);?>
">撰写新文章</a></li>
						<li><a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'post','a'=>'index'),$_smarty_tpl);?>
">文章管理</a></li>
						<li><a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'category','a'=>'index'),$_smarty_tpl);?>
">分类管理</a></li>
					</ul>
				</li>

				<li>
					<a href="#" class="nav-top-item">页面和区块</a>
					<ul>
						<li><a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'page','a'=>'write'),$_smarty_tpl);?>
">撰写新页面</a></li>
                        <li><a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'area','a'=>'write'),$_smarty_tpl);?>
">撰写新区块</a></li>
						<li><a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'page','a'=>'index'),$_smarty_tpl);?>
">页面管理</a></li>
						<li><a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'area','a'=>'index'),$_smarty_tpl);?>
">区块管理</a></li>
					</ul>
				</li>

				<li>
					<a href="#" class="nav-top-item current">设置</a>
					<ul>
						<li><a class="current" href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'user','a'=>'edit','uid'=>$_SESSION['userinfo']['uid']),$_smarty_tpl);?>
">个人信息</a></li>
						<li><a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'user','a'=>'index'),$_smarty_tpl);?>
">用户和权限</a></li>
					</ul>
				</li>

			</ul> <!-- End #main-nav -->

		</div></div> <!-- End #sidebar -->

		<div id="main-content"> <!-- Main Content Section with everything -->

			<div class="content-box"><!-- Start Content Box -->

				<div class="content-box-header">

					<h3>编辑用户及权限</h3>

				</div> <!-- End .content-box-header -->

				<div class="content-box-content">

				  <form id="form1" name="form1" method="post" action="<?php echo $_smarty_tpl->getVariable('formUrl')->value;?>
" onsubmit="return aclcode();"><!--请务必加上onsubmit事件-->
					<?php if ($_smarty_tpl->getVariable('info')->value['uid']!=''){?><input id="uid" type="hidden" name="uid" value="<?php echo $_smarty_tpl->getVariable('info')->value['uid'];?>
" /><?php }?>

							<fieldset>

							  <p>
								<label>用户名</label>
									<input class="text-input medium-input" type="text" id="medium-input" name="name" value="<?php echo $_smarty_tpl->getVariable('info')->value['name'];?>
" />	*
	              </p>
                                <p>
									<label>密码</label>
									<!--将生成加密的密码输入框，只需要指定id，不需要指定name-->
									<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['pwinput'][0][0]->template_pwinput(array('id'=>'password','add'=>"class='text-input small-input' name=password"),$_smarty_tpl);?>
*
								</p>
								<p>
								  <label>邮箱</label>
								  <input class="text-input medium-input" type="text" name="mail" value="<?php echo $_smarty_tpl->getVariable('info')->value['mail'];?>
" />
							  </p>
								<p>
								  <label>网址</label>
								  <input class="text-input medium-input" type="text" name="url" value="<?php echo $_smarty_tpl->getVariable('info')->value['url'];?>
" />
							  </p>
                              <p>
							    <label>昵称</label>
								  <input class="text-input medium-input" type="text" name="screenname" value="<?php echo $_smarty_tpl->getVariable('info')->value['screenname'];?>
" />
							  </p>
                              <p>
							    <label>电话</label>
								  <input class="text-input medium-input" type="text" name="phone" value="<?php echo $_smarty_tpl->getVariable('info')->value['phone'];?>
" />
							  </p>
							  <p>
							    <label>用户组</label>
							    <select name="acl" class="small-input">
								 <?php if ($_smarty_tpl->getVariable('info')->value['acl']=="administrator"){?>
								<option value="administrator"<?php if ($_smarty_tpl->getVariable('info')->value['acl']=="administrator"){?> selected="selected" <?php }?>>administrator</option>
								<option value="editor"<?php if ($_smarty_tpl->getVariable('info')->value['acl']=="editor"){?> selected="selected" <?php }?>>editor</option>
								<?php }else{ ?>
								<option value="editor"<?php if ($_smarty_tpl->getVariable('info')->value['acl']=="editor"){?> selected="selected" <?php }?>>editor</option>
								<?php }?>
						        </select>

								<p>
									<input class="button" type="submit" value="保存" />
								</p>

							</fieldset>

							<div class="clear"></div><!-- End .clear -->

						</form>

				</div> <!-- End .content-box-content -->

			</div> <!-- End .content-box --><!-- End .content-box --><!-- End .content-box -->
	    <div class="clear"></div>
<?php $_template = new Smarty_Internal_Template("admin/footer.html", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate(); $_template->rendered_content = null;?><?php unset($_template);?>